package com.example.decorator;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Client {


    public static void main (String [] args){

//        Component component = new ConcrtetDecorator2(new ConcreteDecorator1(new ConcreteComponent()));

        ConcreteComponent concreteComponent = new ConcreteComponent();
        log.info("1");
        ConcreteDecorator1 concreteDecorator1 = new ConcreteDecorator1(concreteComponent);
        log.info("2");
        Component component = new ConcrtetDecorator2(concreteDecorator1);
        log.info("3");


        component.doSomething();
    }

}
